<%= if (@page.page_number == 1) && !@current_user && !@conn.cookies["hide_subscribe_cta"] do %>
  <%= render(SharedView, "_signup.html", assigns) %>
<% end %>

<a id="feed" class="anchor"></a>
<div class="feed">
  <%#= render("_subnav.html", assigns) %>

  <%= if @page.page_number == 1 do %>
    <%= for item <- @pinned, do: render_item_summary_or_ad(item, assigns) %>
  <% end %>

  <%= for item_or_ad <- items_with_ads(@items, @ads), do: render_item_summary_or_ad(item_or_ad, assigns) %>

  <%= if @page.page_number == 1 do %>
    <%= render(SharedView, "_signup_banner.html", assigns) %>
  <% end %>

  <%= render(SharedView, "_more_button.html", assigns) %>
</div>

<%= if @page.page_number == 1 do %>
<div class="main-podcasts">
  <section class="show_list" id="podcasts">
    <header class="show_list-header">
      <h2>Podcasts from Changelog</h2>
      <p>Weekly shows about software development, developer culture, open source, building startups, artificial intelligence, brain science, and the people involved.</p>
    </header>
    <div class="show_list-shows">
      <%= render_many(@podcasts ++ [Podcast.master], PodcastView, "_summary.html", assigns) %>
    </div>
  </section>
</div>
<% end %>
